<template>
  <div class="w-full h-full p-8">
    <el-button type="primary" @click="goBack">返回</el-button>
    <div class="main-box display-center flex-col">
      <span class="display-center">
        <el-icon :size="20" :color="'#34d399'"><CircleCheck /></el-icon>
        <span style="margin-left: 8px">提交成功</span>
      </span>
      <div class="display-center" @click="linkToPage('/queryProgress')">
        <span>查看申请进度</span>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const linkToPage = (value) => {
  router.push(value)
}

const goBack = () => {
  router.push({ path: 'register' })
}
</script>
<style lang="scss" scoped>
.display-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.main-box {
  width: 100%;
  height: 100%;
  padding-bottom: 200px;
  > div {
    width: 250px;
    height: 80px;
    color: #fff;
    background: #0ea5e9;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
  > * + * {
    margin-top: 30px;
  }
}
</style>
